import request from '@/utils/request'
// 获取新闻列表
export const getArticles = (obj) => {
  return request.get('articles', {
    params: {
      channel_id: obj.channel_id,
      timestamp: obj.timestamp
    }
  })
}
// 获取验证码
export const getPhone = (mobile) => {
  return request.get(`sms/codes/${mobile}`)
}
// 获取所有频道
export const getOwn = () => {
  return request.get('channels')
}
